home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
coding
/
dsp
/
c30setup.exe
/
PRI_SWW.C
< prev
next >
Wrap
Text File
|
1990-01-17
|
1KB
|
55 lines
/**************************************************************
pri_sww.c
James M. Patterson
01-17-90
(C) Texas Instruments Inc., 1992
Refer to the file 'license.txt' included with this
this package for usage and license information.
*************************************************************/
/*
primary bus software wait state (SWW) configuration
James M. Patterson
Texas Instruments, Inc.
370 S. North Lake Boulevard
Altamonte Springs, FL 32701
10/19/89
prototype in: setup.h
calling sequence: pri_sww( sww )
legal values of SWW: INT ( wait only for wait state counter )
EXT ( wait only for /RDYext )
EITHER ( wait for /RDYint OR /RDYext )
BOTH ( wait for /RDYint AND /RDYext )
*/
#define SWW 0x18
void pri_sww( sww )
int sww;
{
int *prim_bus_cr = 0x808064;
int cr;
cr = *prim_bus_cr & ~SWW; /* get current CR contents, clear SWW */
cr = cr | sww; /* OR in new SWW value */
*prim_bus_cr = cr; /* store new CR contents */
}